home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / STSWTCHR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  351 b   |  14 lines

  1. /* STSWTCHR.C --- p. 667 */
  2. #include <stdio.h>
  3. #include <dos.h>
  4. main(int argc, char **argv)
  5. {
  6.     char c;
  7.     if(argc < 2)
  8.         printf("Usage: %s <switch_char>\n", argv[0]);
  9.                     /* Set new switch character */
  10.     c = argv[1][0];
  11.     setswitchar(c);
  12.                 /* Verify the new switch character */
  13.     printf("The current switch char is %c\n", getswitchar());
  14. }